package com.wang.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Parents {
    private String pname;
    private String psex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date pbirthday;
    private String site;
    private String idcard;
    private String ptel;
    private int pid;
    private int uid;

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getPsex() {
        return psex;
    }

    public void setPsex(String psex) {
        this.psex = psex;
    }

    public Date getPbirthday() {
        return pbirthday;
    }

    public void setPbirthday(Date pbirthday) {
        this.pbirthday = pbirthday;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getPtel() {
        return ptel;
    }

    public void setPtel(String ptel) {
        this.ptel = ptel;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Parents{" +
                "pname='" + pname + '\'' +
                ", psex='" + psex + '\'' +
                ", pbirthday=" + pbirthday +
                ", site='" + site + '\'' +
                ", idcard='" + idcard + '\'' +
                ", ptel='" + ptel + '\'' +
                ", pid=" + pid +
                ", uid=" + uid +
                '}';
    }
}
